@extends('admin.base.parent')
@section('content')
	<div class="main-content">
		<div class="breadcrumbs" id="breadcrumbs">
			<script type="text/javascript">
				try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
			</script>

			<ul class="breadcrumb">
				<li>
					<i class="icon-home home-icon"></i>
					<a href="#">主页</a>
				</li>
				<li>
					<a href="#">类别管理页</a>
				</li>
				<li class="active">添加类别</li>
			</ul><!-- .breadcrumb -->
		</div>

		<div class="page-content">
			<div class="page-header">
				<h1>
					添加类别
					<small>
						<i class="icon-double-angle-right"></i>
						类别添加
					</small>
				</h1>
			</div><!-- /.page-header -->
			@if(count($errors)> 0)
				<div class='alert alert-danger'>
					<ul>
						@foreach($errors->all() as $error)
							<li>{{ $error }}</li>
						@endforeach
					</ul>
				</div>
			@endif
			<div class="row">
				<div class="col-xs-12">
					<!-- PAGE CONTENT BEGINS -->

					<form class="form-horizontal" role="form" action="{{ url('admin/type') }}" method='post'>
						{{ csrf_field() }}
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1">	类别名 </label>

							<div class="col-sm-9">
								<input type="text" id="form-field-1" placeholder="请输入类别名" class="col-xs-10 col-sm-5"  name='name'/>
							</div>
						</div>
						
						<div class="form-group">
							<div class="col-sm-9">
								<input type="hidden" id="form-field-1"  class="col-xs-10 col-sm-5" name='upid' value=0>
							</div>
						</div>

						<div class="form-group">
							<div class="col-sm-9">
								<input type="hidden" name='path' value='0'>
							</div>
						</div>
						<div class="clearfix form-actions">
							<div class="col-md-offset-3 col-md-9">
								<button class="btn btn-info" type="submit">
									<i class="icon-ok bigger-110"></i>
									提交
								</button>

								&nbsp; &nbsp; &nbsp;
								<button class="btn" type="reset">
									<i class="icon-undo bigger-110"></i>
									重置
								</button>
							</form>
						</div>
					</div>
				</div><!-- /.col -->
			</div><!-- /.row -->
		</div><!-- /.page-content -->
	</div><!-- /.main-content -->
@endsection